package org.JWCB.friend.domain.user.dto;


import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.JWCB.common.security.valid.innotation.AllowedValues;

@Getter
@Setter
@ToString
public class UserSubmitDto {
    @NotNull(message = "问题参数缺失")
    private Long questionId;

    private Long examId;

    @NotEmpty(message = "不能提交空代码")
    @NotNull(message = "不能提交空代码")
    private String userCode;

    @NotNull(message = "语言不能为空")
    @AllowedValues(value = {"0","1","2"},canNull = false)
    private Integer programType; // 0 java 1 c++ 2 golang....


    private String uniqueId;
}
